import request from '@/utils/request'

// 暂时也定0 首页轮播、1个人中心菜单

export function restaurantAdd(data) {
  return request({
    url: `/restaurant/config`,
    method: 'post',
    data
  })
}

export function restaurantEdit(data) {
  return request({
    url: `/restaurant/config`,
    method: 'put',
    data
  })
}

export function restaurantList(params) {
  return request({
    url: `/restaurant/config/list`,
    method: 'get',
    params
  })
}
export function restaurantDelete(configIds) {
  return request({
    url: `/restaurant/config/${configIds}`,
    method: 'delete'
  })
}

export function restaurantDetails(configId) {
  return request({
    url: `/restaurant/config/${configId}`,
    method: 'get'
  })
}
